package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.MemDAO;
import com.sds.shop.vo.MemVO;
import com.sds.shop.vo.SessionVO;

public class SelectUsrAction extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		MemDAO mdao = MemDAO.getInstance();
		MemVO memInfo = new MemVO();
		
	
		String memId =  request.getParameter("memId");
		String memNm =  request.getParameter("memNm");
//		System.out.println(memInfo.getMemId());
	    
	    memInfo = mdao.selectUsr(memId,memNm);
	    System.out.println(memInfo.getMemNm());	 
		request.setAttribute("memInfo", memInfo);
		 
		HttpUtil.forward(request, response, "/jsp/selectUsr.jsp");
	}

}
